package plp.funcoo.expressions;

import plp.funcoo.environment.compilation.Environment;
import plp.funcoo.exceptions.ClassNotDeclared;
import plp.funcoo.exceptions.VarNotDeclared;
import plp.funcoo.types.PrimitiveType;
import plp.funcoo.util.Type;

public abstract class ConditionalExpression extends BinaryExpression{

	public ConditionalExpression(Expression left, Expression right, String operator) {
		super(left, right, operator);
	}


	@Override
	public Type getType(Environment envi) throws VarNotDeclared,
			ClassNotDeclared {
		return PrimitiveType.Type_BOOLEAN;
	}
}
